namespace SimpleWebServices.Web.UI.Html.Elements
{
    using System;
    using System.Xml.Serialization;

    [XmlRoot("div")]
    public class Division : InnerElements, IXmlSerializable
    {
        public override IElement Deserialize(string name, string type, string xml)
        {
            IElement result = null;

            if (null == type && "div".Equals(name, StringComparison.OrdinalIgnoreCase))
            {
                result = xml.Deserialize<Division>();
            }

            return result;
        }
    }
}